package edu.sctu.practice.class02.shuqiqi.test03;

/**
 * Created by admin on 2015/10/12.
 */
public class MyTime {

    private int hour, minute, second;

    public MyTime(int hour, int minute, int second) {
        this.hour = hour;
        this.second = second;
        this.minute = minute;
    }

    public void diaplay() {
        System.out.println("  :" + hour + ";" + minute + ";" + second);
    }

    public void addSecond(int sec) {

    }

    public void addMinute(int min) {

    }

    public void addHour(int hou) {

    }

    public void subSecond(int sec) {
        second = second + sec;

    }

    public void subMinute(int min) {
        minute = minute + min;

    }

    public void subHour(int hou) {
        hour = hour + hou;
    }

}
